package link.anyauto.web;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import spark.ResponseTransformer;

/**
 * Created by Administrator on 2016/8/10.
 */
public class JsonTransformer implements ResponseTransformer {
    Gson g = new GsonBuilder().create();
    @Override
    public String render(Object model) throws Exception {
        return g.toJson(model);
    }
}
